package com.blb.zy_community.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.blb.zy_community.entity.ZyCommunity;
import com.blb.zy_community.mapper.ZyCommunityMapper;
import com.blb.zy_community.service.IZyCommunityService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 小区  服务实现类
 * </p>
 *
 * @author 二组
 * @since 2023-06-18
 */
@Service
public class ZyCommunityServiceImpl extends ServiceImpl<ZyCommunityMapper, ZyCommunity> implements IZyCommunityService {

    @Autowired
    private ZyCommunityMapper zyCommunityMapper;
    @Override
    public Page<ZyCommunity> selectZyCommunityPage(Page<ZyCommunity> page, String communityName, String communityCode,String communityId) {
        return zyCommunityMapper.selectZyCommunityPage(page,communityName,communityCode,communityId);
    }

    @Override
    public void deleteCommunities(Long[] communityId) {
        zyCommunityMapper.deleteCommunities(communityId);
    }
}
